//
//  MediaDetailViewController.h
//  LegalObserver
//
//  Created by Roxanne Brittain on 11/1/11.
//  Copyright (c) 2011 Digifit. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LOMedia.h"
#import <MediaPlayer/MediaPlayer.h>
#import <MessageUI/MFMailComposeViewController.h>

@interface MediaDetailViewController : UITableViewController <UITextViewDelegate, UITextFieldDelegate, MFMailComposeViewControllerDelegate, UIActionSheetDelegate>
{
    LOMedia *media;
    int mediaIndex;
    UIView *mediaView;
    UIImageView *imageView;
    NSMutableArray *mediaArray;
    MPMoviePlayerController *moviePlayerController;
    
}

@property (nonatomic, retain) LOMedia *media;
@property (nonatomic, retain) MPMoviePlayerController *moviePlayerController;

- (id)initWithMediaIndex:(int)i;
-(void)displayMedia;
-(void)deleteMedia;
-(void)onRightButton:(id)sender;
-(void)onLeftButton:(id)sender;
-(void)createAndConfigurePlayerWithURL:(NSURL *)movieURL sourceType:(MPMovieSourceType)sourceType;
-(void)createAndPlayMovieForURL:(NSURL *)movieURL sourceType:(MPMovieSourceType)sourceType;

@end
